package com.huilian.iotbox.admin.wap.service;

import com.github.pagehelper.PageInfo;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.QualificationDto;
import com.huilian.iotbox.data.po.Qualification;

import java.io.IOException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;

/**
 * @author 谢洛涛
 * @date 2021/3/23 10:11
 */
public interface QualificationService {
    Integer addQualification(Qualification qualification);

    PageInfo findQualificationList(Qualification qualification);

    ServerResponse findQualificationInfo(Qualification qualification) throws Exception;

    ServerResponse qualificationRegister(QualificationDto qualificationDto) throws IOException, NoSuchAlgorithmException, NoSuchProviderException, KeyManagementException;

    ServerResponse findMerchantIdByQualificationId(Qualification qualification);

    ServerResponse findSubLedgerMerchantCountByUserId(Qualification qualification);

    ServerResponse findQualificationByType(Qualification qualification);

    int updateNameWhereCertNo(Qualification qualification);
}
